import HTTP from '../utils/http';
import { API } from '../config/config';
import { Message } from 'element-ui';
import { axiosMessageShow } from '@/utils/tools';
const ESSAY = API.ESSAY;
export default class EssayClass extends HTTP{
    findEssay(id) {
      return new Promise((resolve)=>{
        this.axiosPost({
            url:ESSAY.ESSAY_GET,
            data:id,
            success(data){
                axiosMessageShow(data);
                resolve(data)
            },error(error){
                Message({
                    message:error,
                    type:'error'
                })
            }
        })
      })  
    } 

}